import Mixins from '@/views/mixins'
import {queryForgottenCustomerCountAPI, queryCollectionStatisticsInfoAPI, queryDataStatisticsCountAPI, queryForgottenCustomerListAPI} from '@/api/dashboard'
export default{
  mixins: [Mixins],
  methods: {
    getRequestType (opt) {
      if (opt === 'queryForgottenCustomerCount') {
        return queryForgottenCustomerCountAPI
      } else if (opt === 'queryCollectionStatisticsInfo') {
        return queryCollectionStatisticsInfoAPI
      } else if (opt === 'queryDataStatisticsCount') {
        return queryDataStatisticsCountAPI
      } else if (opt === 'queryForgottenCustomerList') {
        return queryForgottenCustomerListAPI
      }
    }
  }
}
